//
//  HSYUserRegisterRequest.m
//  HSY
//
//  Created by 陈浩 on 2017/4/6.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYUserRegisterRequest.h"

@implementation HSYUserRegisterRequest

- (NSString *)serviceCode{
    return API_SERVICE_CODE_REGISTER;
}

- (NSDictionary *)requestData{
    NSAssert(self.cellphone.length > 0, @"手机号不能为空");
    NSAssert(self.password.length > 0, @"密码不能为空");
    NSAssert(self.code.length > 0, @"验证码不能为空");
    NSAssert(self.shopName.length > 0, @"店铺名称不能为空");
    NSAssert(self.industryCode.length > 0, @"所属行业代码不能为空");

    NSMutableDictionary *params = [@{} mutableCopy];
    params[@"cellphone"] = self.cellphone;
    params[@"password"] = self.password;
    params[@"code"] = self.code;
    params[@"shopName"] = self.shopName;
    params[@"industryCode"] = self.industryCode;

    return params;
}


@end
